using System;
using System.Collections.Generic;
using System.Text;

namespace LogFileViewer
{
    public class LogEntry
    {
        private DateTime datetime;

        /// <summary>
        ///     Date and time of the log message occurence.
        /// </summary>
        public DateTime Datetime
        {
            get { return datetime; }
            set { datetime = value; }
        }

        private MessageTypes type;

        /// <summary>
        ///     MessageType of of this log message.
        ///     (Examples: INFO, WARN, DEBUG, ERROR, FATAL)
        /// </summary>
        public MessageTypes Type
        {
            get { return type; }
            set { type = value; }
        }

        private string package;

        /// <summary>
        ///     Java package that is named in log entry.
        /// </summary>
        public string Package
        {
            get { return package; }
            set { package = value; }
        }

        private string message;

        /// <summary>
        ///     The main log message, the so called stack trace.
        /// </summary>
        public string Message
        {
            get { return message; }
            set { message = value; }
        }
    }
}
